package com.baizhi.springmvc.service;

import com.baizhi.springmvc.entity.Book;

import java.util.List;

public interface BookService {
    List<Book> selectByInventory();//--库存
    List<Book> selectBySalenum();//  Integer  not null,--销量
    List<Book> selectByGroundingDate(); //groundingDate date//--上架时间
    List<Book> selectByCustome_score();//custome_score--顾客评分
    List<Book> selectByFirstid(Integer firstid,Integer pageNum,Integer pageSize);
    List<Book> selectByTwoid(Integer twoid,Integer pageNum,Integer pageSize);

    Integer firstTotalPage(Integer cid, Integer pageSize);

    Integer twoTotalPage(Integer cid, Integer pageSize);

    Book selectOne(Integer id);
}
